package com.shsxt.model;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class YOrder {
	private String detailAddress;
	private String type;
	private String phoneNumber;
	private String sex;
	private String duedate;
	private String orderNumber;
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private String orderTime;
	private String timeSlot;
	private String servicePersonal;
	private String orderState;
	private String evaluation;
	private String score;
	private String address;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private String evaluationTime;
	private String realPhoneNumber;
private String RedeemCode;
private String LinkMan;

	public String getLinkMan() {
	return LinkMan;
}
public void setLinkMan(String linkMan) {
	LinkMan = linkMan;
}
	public String getRedeemCode() {
		return RedeemCode;
	}
	public void setRedeemCode(String redeemCode) {
		RedeemCode = redeemCode;
	}
	public String getRealPhoneNumber() {
		return realPhoneNumber;
	}
	public void setRealPhoneNumber(String realPhoneNumber) {
		this.realPhoneNumber = realPhoneNumber;
	}
	@Override
	public String toString() {
		return "YOrder [detailAddress=" + detailAddress + ", type=" + type + ", phoneNumber=" + phoneNumber + ", sex="
				+ sex + ", duedate=" + duedate + ", orderNumber=" + orderNumber + ", orderTime=" + orderTime
				+ ", timeSlot=" + timeSlot + ", servicePersonal=" + servicePersonal + ", orderState=" + orderState
				+ ", evaluation=" + evaluation + ", score=" + score + ", address=" + address + ", evaluationTime="
				+ evaluationTime + "]";
	}
	public YOrder() {
		super();
		// TODO Auto-generated constructor stub
	}
	public YOrder(String detailAddress, String type, String phoneNumber, String sex, String duedate, String orderNumber,
			String orderTime, String timeSlot, String servicePersonal, String orderState, String evaluation,
			String score, String address, String evaluationTime) {
		super();
		this.detailAddress = detailAddress;
		this.type = type;
		this.phoneNumber = phoneNumber;
		this.sex = sex;
		this.duedate = duedate;
		this.orderNumber = orderNumber;
		this.orderTime = orderTime;
		this.timeSlot = timeSlot;
		this.servicePersonal = servicePersonal;
		this.orderState = orderState;
		this.evaluation = evaluation;
		this.score = score;
		this.address = address;
		this.evaluationTime = evaluationTime;
	}
	public String getDetailAddress() {
		return detailAddress;
	}
	public void setDetailAddress(String detailAddress) {
		this.detailAddress = detailAddress;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getDuedate() {
		return duedate;
	}
	public void setDuedate(String duedate) {
		this.duedate = duedate;
	}
	public String getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}
	public String getOrderTime() {
		return orderTime;
	}
	public void setOrderTime(Date xxx) {
		SimpleDateFormat myFmt=new SimpleDateFormat("yyyy-MM-dd");        
	    String orderTime= myFmt.format(xxx);
	    this.orderTime = orderTime;
	}
	public String getTimeSlot() {
		return timeSlot;
	}
	public void setTimeSlot(String timeSlot) {
		this.timeSlot = timeSlot;
	}
	public String getServicePersonal() {
		return servicePersonal;
	}
	public void setServicePersonal(String servicePersonal) {
		this.servicePersonal = servicePersonal;
	}
	public String getOrderState() {
		return orderState;
	}
	public void setOrderState(String orderState) {
		this.orderState = orderState;
	}
	public String getEvaluation() {
		return evaluation;
	}
	public void setEvaluation(String evaluation) {
		this.evaluation = evaluation;
	}
	public String getScore() {
		return score;
	}
	public void setScore(String score) {
		this.score = score;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getEvaluationTime() {
		return evaluationTime;
	}
	public void setEvaluationTime(Date xxx) {
		SimpleDateFormat myFmt=new SimpleDateFormat("yyyy-MM-dd");        
	    String evaluationTime= myFmt.format(xxx);
		this.evaluationTime = evaluationTime;
	}


	
}
